// File generated from our OpenAPI spec by Stainless.

package com.metest.api.models.rest.actuator.sbom

import com.fasterxml.jackson.module.kotlin.jacksonTypeRef
import com.metest.api.core.jsonMapper
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test

internal class SbomRetrieveResponseTest {

    @Test
    fun create() {
        val sbomRetrieveResponse = SbomRetrieveResponse.builder().build()
    }

    @Test
    fun roundtrip() {
        val jsonMapper = jsonMapper()
        val sbomRetrieveResponse = SbomRetrieveResponse.builder().build()

        val roundtrippedSbomRetrieveResponse =
            jsonMapper.readValue(
                jsonMapper.writeValueAsString(sbomRetrieveResponse),
                jacksonTypeRef<SbomRetrieveResponse>(),
            )

        assertThat(roundtrippedSbomRetrieveResponse).isEqualTo(sbomRetrieveResponse)
    }
}
